﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace scom_a3_web.jonathan_svc
{
    public partial class CompareDates_test : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void btn_Submit_Click(object sender, EventArgs e)
        {
            DateTime date1 = new DateTime(Convert.ToInt32(txt_Date1_Year.Text), Convert.ToInt32(txt_Date1_Month.Text), Convert.ToInt32(txt_Date1_Day.Text));
            DateTime date2 = new DateTime(Convert.ToInt32(txt_Date2_Year.Text), Convert.ToInt32(txt_Date2_Month.Text), Convert.ToInt32(txt_Date2_Day.Text));
            ServiceReference3.RequiredServices_JStanleyClient client = new ServiceReference3.RequiredServices_JStanleyClient();
         
            lbl_Output.Text = Convert.ToString(client.compareDates(date1, date2));
        }
    }
}